<html xmlns:v='urn:schemas-microsoft-com:vml'>
<head>
<style>
v:* {behavior:url(#default#VML);}
</style>
</head>
<body id=board topmargin=0 leftmargin=0>
aaa
<v:line id=lines style='position:absolute;' from='0px,0px'  to='0px,0px' strokeweight='1px' strokecolor='black'/>
</body>
<script>
var flag=false
function drawLine(){
        flag=true;
        board.innerHTML+="n<v:line id=lines style='position:absolute;' from='"+leftP+"px,"+topP+"px'  to='"+leftP+"px,"+topP+"px' strokeweight='1px' strokecolor='black'/>"
        }
function initPosition(){
        leftP=event.clientX
        topP=event.clientY
        if(flag){document.all.lines[document.all.lines.length-1].to=leftP+"px,"+topP+"px"}
        }
function drawEnd(){
        flag=false
        }
document.onmousedown=drawLine;
document.onmousemove=initPosition;
document.onmouseup=drawEnd;
</script>
</html>